import request from '@/utils/request'

// 查询维保价目列表
export function listFwMaintenancePrice(query) {
  return request({
    url: '/device/fwMaintenancePrice/list',
    method: 'get',
    params: query
  })
}

// 查询维保价目详细
export function getFwMaintenancePrice(id) {
  return request({
    url: '/device/fwMaintenancePrice/' + id,
    method: 'get'
  })
}

// 新增维保价目
export function addFwMaintenancePrice(data) {
  return request({
    url: '/device/fwMaintenancePrice',
    method: 'post',
    data: data
  })
}

// 修改维保价目
export function updateFwMaintenancePrice(data) {
  return request({
    url: '/device/fwMaintenancePrice',
    method: 'put',
    data: data
  })
}

// 删除维保价目
export function delFwMaintenancePrice(id) {
  return request({
    url: '/device/fwMaintenancePrice/' + id,
    method: 'delete'
  })
}
